package io.renren.dao;

import io.renren.common.dao.BaseDao;
import io.renren.entity.ProjectmEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * ${comments}
 *
 * @author Sen 524227263@qq.com
 * @since 1.0.0 2024-05-30
 */
@Mapper
public interface ProjectmDao extends BaseDao<ProjectmEntity> {


    @Select("select Name  from Insurance where InsuranceOID =#{Fk}")
    String findNameForInsuranceOID(@Param("Fk") String Fk);

    @Select("select Amount,BusinessAmount,DiscountAmount,ProjectM_FK  from AutoRepairItemsD where AutoRepairM_FK =#{Fk}")
    List<Map<String, Object>> findListByAutoRepairMFK(@Param("Fk") String Fk);
}